import axios from 'axios'

export default class  {
   
    //获取工种
    getprofessions(){     
            return axios.get(`http://localhost/smj_realname/getprofessions`)    
    }

    //添加实名制信息
    AddRealname(laber,projectId){
        return axios.get(`http://localhost/smj_realname`,{
            params:{
                'name':laber.name,
                'sfz':laber.sfz ,
                'profession':laber.profession,
                'p_id':projectId,
                'commit':laber.commit,
                'apply_date':laber.apply_date,
                'attach_ids':laber.attach_ids,
                'attach_ids2':laber.attach_ids2,
            }
        })
    }

    //查询实名制列表
    listrealname(params){     
        return axios.get(`http://localhost/smj_realname/listrealname`,{
            params:params
        })   
}
    

}